<?php
/*
 * @Description: 
 * @Author: Leequik
 * @Date: 2024-02-08 19:10:04
 * @LastEditTime: 2025-08-12 23:08:30
 * @LastEditors: Leequik
 */

use Illuminate\Support\Facades\Route;
use App\Http\Controllers\TestController;
use App\Services\SendMessageService;
use App\Http\Controllers\PostController;

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider and all of them will
| be assigned to the "web" middleware group. Make something great!
|
*/

Route::get('/', function () {
    return view('index');
});

Route::get('/index', function () {
    return view('index');
});

//Route::view('/wel', 'welcome');
Route::view('/wel', 'welcome', ['name' => 'Taylor']);

Route::get('/hello', function () {
    return "hello world!";
});

/******************************************/
//事件 任务  队列  demo
Route::get('/test', function () {
    return view('test');
});
Route::get('/event',[TestController::class, 'eventTest']);

Route::get('/send',[SendMessageService::class, 'test']);

Route::get('/sedd',[TestController::class, 'sed']);

Route::get('/fun',[TestController::class, 'fun']);

Route::get('/fdemo',[TestController::class, 'filterDemo']);

Route::get('/fm',[TestController::class, 'test']);



/**************post demo******************* */

Route::get('/post/index',[PostController::class, 'index']);


/************************************** */
Route::get('/crud', function () {
    return view('index');
});




//vue页面请求的路由
Route::get('{any}', function () {
    return view('index');
})->where('any', '.*');

